package threads;

public class ThreadExtends
    extends Thread
{
  public String nom ;
  public void run()
  {
    while (true)
    {
      System.out.println("dans ThreadExtends");
    }
  }

  public void methode()
  {
    synchronized (nom)
    {
      System.out.println("dans methode");
    }
  }

}
